home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / wmpack.z / wmpack
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. wwwwmmmmppppaaaacccckkkk((((3333GGGG))))                                                          wwwwmmmmppppaaaacccckkkk((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      wwwwmmmmppppaaaacccckkkk - specifies RGBA writemask with a single packed integer
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee wwwwmmmmppppaaaacccckkkk((((ppppaaaacccckkkk))))
  13.      iiiinnnntttteeeeggggeeeerrrr****4444 ppppaaaacccckkkk
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _p_a_c_k   expects a packed integer containing the RGBA (red, green, blue,
  17.             alpha) values you want to assign as the current write mask.
  18.             Expressed in hexadecimal, the format of the packed integer is
  19.             $_a_a_b_b_g_g_r_r, where:
  20.  
  21.                _a_a   is the alpha value,
  22.                _b_b   is the blue value,
  23.                _g_g   is the green value, and
  24.                _r_r   is the red value.
  25.  
  26.             RGBA component values range from 0 to $FF (255).
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      wwwwmmmmppppaaaacccckkkk sets the red, green, blue, and alpha write mask components of the
  30.      currently active GL framebuffer, one of normal, popup, overlay, or
  31.      underlay as specified by ddddrrrraaaawwwwmmmmoooo.  The current framebuffer must be in RGB
  32.      mode for the wwwwmmmmppppaaaacccckkkk command to be applicable.  All drawing into the color
  33.      bitplanes of the current framebuffer is masked by the current write mask.
  34.      Write mask components are retained in each draw mode, so when a draw mode
  35.      is re-entered, the red, green, blue, and alpha masks are reset to the
  36.      last values specified in that draw mode.
  37.  
  38.      Each write mask component is an 8-bit mask, which allows changes only to
  39.      bitplanes corresponding to ones in the mask.  For example,
  40.      wwwwmmmmppppaaaacccckkkk(((($$$$FFFFFFFF0000000000000000FFFF0000)))) allows changes only to the 4 most significant bits of
  41.      red, and to all the bits of alpha.
  42.  
  43.      It is an error to call wwwwmmmmppppaaaacccckkkk while the current framebuffer is in color
  44.      map mode.
  45.  
  46.      The write mask components of all framebuffers in RGB mode are set to $FF
  47.      when ggggccccoooonnnnffffiiii is called.
  48.  
  49. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  50.      cpack, drawmo, gRGBma, RGBmod
  51.  
  52. NNNNOOOOTTTTEEEE
  53.      Because only the normal framebuffer currently supports RGB mode, wwwwmmmmppppaaaacccckkkk
  54.      should be called only while draw mode is NNNNOOOORRRRMMMMAAAALLLL.  Use ggggeeeettttggggddddeeee to determine
  55.      whether RGB mode is available in draw mode NNNNOOOORRRRMMMMAAAALLLL.
  56.  
  57.      On Impact and Infinite Reality only whole components can be masked.  RGB
  58.      and A can be completely masked or not masked at all.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.